<?php 
if(!defined('ADMIN')){
	exit('Access Denied');
}


?>
<div class="pageHeader">
	<p><b>名店管理 > 编辑名店</b></p>
</div>
<div class="pageContent" >
<form method="post" action="index.php?mod=caipu&act=addedishop" class="pageForm required-validate" onsubmit="return validateCallback(this,navTabAjaxDone)">
<input type="hidden" name="sub" value="save" />
<input type="hidden" name="id" value="<?=$id?>" />
<div class="pageFormContent nowrap" layoutH="80" style="overFlow-x: hidden;">




    <dl>
    <dt>店名：</dt>
    <dd>
    <input type="text" name="sname" style="width:300px" id="title"  value="<?=$row["sname"]?>"  />
        <span class="info">&nbsp;必填</span>
    </dd>
    </dl>
    <dl>
    <dt>联系电话：</dt>
    <dd>
    <input type="text" name="telephone" style="width:300px" id="title"  value="<?=$row["telephone"]?>" />
        <span class="info">&nbsp;必填</span>
    </dd>
    </dl>
    <dl>
    <dt>饭店地址：</dt>
    <dd>
    <input type="text" name="address" style="width:300px" id="title"  value="<?=$row["address"]?>" />
        <span class="info">&nbsp;必填</span>
    </dd>
    </dl>
    <dl>
    <dt>图片：</dt>
    <dd>

       <input name="imgs0.id" id="imgs0_id" type="hidden" value="">
        <input name="imgs0.fileName" class="readonly textInput" id="imgs0_fileName" style="width: 300px;" type="text" readonly="readonly" value="<?=$row["thumb"]?>">
        <a title="" class="btnPic" href="index.php?mod=content&amp;act=upload" width="460" height="200" lookupgroup="imgs0">附件</a>
        <input name="imgs0.title" class="textInput" id="imgs0_title" type="text" value="" style="display: none;">
       <span class="info">&nbsp; &nbsp;<img style="cursor: pointer;" onclick="javascript:clearimginfo('imgs0_')" src="images/cross.png"> 默认缩略图</span>


    </dd>
    </dl>
    
    <dl>
    <dt>简介：</dt>
    <dd>
    <textarea name="description" id="description<?=time()?>"><?=$row["description"]?></textarea>
        <script type="text/javascript">
        UE.getEditor("description<?=time()?>");
        </script>
    </dd>
    </dl> 
  
    <dl>
    <dt>是否前台展示：</dt>
    <dd>
<?=html_radio($yesno_arr,$row["status"],"status")?>

    <span class="info">&nbsp;</span>
    </dd>
    </dl>
    
    <dl>
        <dt>服务时间：</dt>
        <dd>
        
        <span class="info" style=""><?=select($timelist,$row['service_starttime'],'service_starttime','')?>&nbsp;&nbsp;到&nbsp;&nbsp;<?=select($timelist,$row['service_stoptime'],'service_stoptime','')?>&nbsp;点&nbsp;（即 营业时间）</span>
        </dd>
    </dl>
</div>
<div class="formBar">
<ul style="float:left;">
<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保 存 操 作</button></div></div></li>
</ul>
</div>
</form>

<script type="text/javascript">
function clearimginfo(divid){
    $("#"+divid+"title").val("");
    $("#"+divid+"id").val("");
    $("#"+divid+"fileName").val("");
    
}
</script>